
set(HEADER_FILES
	include/m3d.h
	include/geometry.h
	include/world.h
	include/camera.h
	include/model.h
	include/image.h
)

set(SOURCE_FILES
	src/geometry.cpp
	src/world.cpp
	src/camera.cpp
	src/model.cpp
	src/image.cpp
)

include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}/include
)



SET (CORELIBS ${GLUT_LIBRARY} ${OPENGL_LIBRARY} m)
SET (LIBMOBILE3D_SRC geometry.cpp)

ADD_LIBRARY (mobile3d SHARED ${HEADER_FILES} ${SOURCE_FILES} )
ADD_LIBRARY (mobile3d_static STATIC ${SOURCE_FILES} ${HEADER_FILES})
SET_TARGET_PROPERTIES (mobile3d PROPERTIES  OUTPUT_NAME "mobile3d")
SET_TARGET_PROPERTIES (mobile3d_static PROPERTIES OUTPUT_NAME "mobile3d")
SET_TARGET_PROPERTIES (mobile3d PROPERTIES CLEAN_DIRECT_OUTPUT 1)
SET_TARGET_PROPERTIES (mobile3d_static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
SET_TARGET_PROPERTIES (mobile3d PROPERTIES VERSION 1.2 SOVERSION 1)


INSTALL (TARGETS mobile3d mobile3d_static 
    LIBRARY DESTINATION lib
    ARCHIVE DESTINATION lib)

INSTALL (FILES ${HEADER_FILES} DESTINATION include/mobile3d)

